package com.toe.commodity.service;

import com.toe.pojo.entity.commodity.CommodityGoodsAlbum;
import com.baomidou.mybatisplus.extension.service.IService;
import com.toe.pojo.vo.commodity.CommodityGoodsAlbumVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */
public interface CommodityGoodsAlbumService extends IService<CommodityGoodsAlbum> {

    //根据商品id找到其对应的相册
    List<CommodityGoodsAlbumVO> getGoodsUrlByGoodsId(Long id);

    //插入新的商品图片
    void addNewGoodsUrl(CommodityGoodsAlbumVO commodityGoodsAlbumVO);

    //根据图片地址删除图片
    void deletedAlbumByUrl(Long id);

}
